<script>
	import store from '@/store/index.js'
	import ws from '@/utils/websocket.js'
	export default {
		onLaunch: async () => {
			await store.dispatch('reloadLoginInfoFromLocal')
			if (store.getters.isLogin) {
				await store.dispatch('updateUserInfo')
				ws.checkOpenSocket()
			}
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	
	.font36 {
		font-size: 36rpx;
	}
	.bold {
		font-weight: bold;
	}
</style>
